package org.ncibi.cytoscape.metscape.action;

import java.awt.event.ActionEvent;

import org.ncibi.cytoscape.metscape.ui.RegistrationDialog;

import cytoscape.Cytoscape;
import cytoscape.util.CytoscapeAction;

@SuppressWarnings("serial")
public class RegistrationAction extends CytoscapeAction{
	
	public static final String NAME = "Register";
	
	private RegistrationDialog dialog;

	/**
	 * The constructor sets the text that should appear on the menu item.
	 */
	public RegistrationAction() {
		super(NAME);
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		if(dialog == null) {
			dialog = new RegistrationDialog(Cytoscape.getDesktop());
		}
		dialog.setVisible(true);
	}

}
